package com.lixl.concurrent;

public class Test02 {

	public static void main(String[] args) {

		Ps p1 = new Ps();
		p1.start();

		Ps p2 = new Ps();
		p2.start();

		while (true) {
			System.out.println(System.currentTimeMillis() + "\t"
					+ Thread.currentThread().getName());
		}
	}

}

class Ps extends Thread {
	@Override
	public void run() {
		while (true) {
			System.out.println(System.currentTimeMillis() + "\t"
					+ this.getName());
		}
	}
	
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		return super.equals(obj);
	}
}
